package com.qtenv.datasync.service.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
    * 大表日冻结数据表（设备维度）
    * </p>
 *
 * @author CBL
 * @since 2022-08-05
 */
@Data
@TableName("dm_terminals_freeze")
@ApiModel(value = "TerminalsFreeze对象", description = "大表日冻结数据表（设备维度）")
public class TerminalsFreeze implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("设备归属租户")
    @TableField("tenant_id")
    private String tenantId;

    @ApiModelProperty("设备编号")
    @TableField("TerminalID")
    private String terminalID;

    @ApiModelProperty("净累计量")
    @TableField("cumulative_flow")
    private BigDecimal cumulativeFlow;

    @ApiModelProperty("正向流量")
    @TableField("forward_flow")
    private BigDecimal forwardFlow;

    @ApiModelProperty("反向流量")
    @TableField("reverse_flow")
    private BigDecimal reverseFlow;

    @ApiModelProperty("夜间流量")
    @TableField("night_flow")
    private BigDecimal nightFlow;

    @ApiModelProperty("瞬时流量（日平均）")
    @TableField("instant_flow")
    private BigDecimal instantFlow;

    @ApiModelProperty("管网压力（日平均）")
    @TableField("pipe_pressure")
    private BigDecimal pipePressure;

    @ApiModelProperty("管网压力（夜间日平均）")
    @TableField("pipe_npressure")
    private BigDecimal pipeNpressure;

    @ApiModelProperty("管网夜间最小压力")
    @TableField("pipe_minpressure")
    private BigDecimal pipeMinpressure;

    @ApiModelProperty("冻结时间（日）")
    @TableField("FreezeTime")
    private String freezeTime;

    @ApiModelProperty("电压（日平均）")
    @TableField("battery_voltage")
    private BigDecimal batteryVoltage;

    @ApiModelProperty("前7天日平均总用量")
    @TableField("avg_cumulative_flow")
    private BigDecimal avgCumulativeFlow;

    @ApiModelProperty("前7天日平均瞬时流量")
    @TableField("avg_instant_flow")
    private BigDecimal avgInstantFlow;

    @ApiModelProperty("前7天日平均压力")
    @TableField("avg_pipe_pressure")
    private BigDecimal avgPipePressure;

    @ApiModelProperty("是否手动插入")
    @TableField("IFtype")
    private Integer iFtype;

    @ApiModelProperty("备注")
    @TableField("Remark")
    private String remark;

    @ApiModelProperty("插入时间")
    @TableField("SYS_DATE")
    private Date sysDate;

    @ApiModelProperty("冻结类型，日：day，月：month")
    @TableField("frozen_type")
    private String frozenType;

    @ApiModelProperty("平台表单自增主键")
    @TableField("ID")
    private Integer id;
}